package com.example.dafafastlib.Network;

import android.text.TextUtils;

import com.example.dafafastlib.utils.Logger;

/**
 * Created by mocen_dafa on 2018/3/14.
 */

public class TResponse<T> {
    public String msg;
    public T data;
    public int code;
    public boolean isSuccess(){
        if(code == 1){
            return true;
        }else{
            return false;
        }
    }

    @Override
    public String toString() {
        return "TResponse{" +
                "msg='" + msg + '\'' +
                ", data=" + data +
                ", code=" + code +
                '}';
    }
}
